import java.util.*;
import java.lang.String.*;

class Test{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		String s;
		s=sc.next();
		String x=new String("saibaba");
		StringBuffer sb=new StringBuffer(s);
		if(s.equals(x)){
			System.out.println("equal");
		}
		else
			System.out.println("not equal");
			
		//String[] a=new String[10];
		//a=x.split();
	
		System.out.println(x.subString(3));
	}
}
